/**
 * @filename:UserAccount 2023-4-21
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.Version;

/**   
 * @Description:TODO(用户资金账户实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sn_user_account")
@ApiModel(value="sn_user_account对象", description="用户资金账户表")
public class UserAccount extends Model<UserAccount> {

	private static final long serialVersionUID = 1682035075524433L;
	
	@TableId(value ="uid", type = IdType.AUTO)
	@ApiModelProperty(name = "uid" , value = "编号")
    private Long uid;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_real_name" , value = "姓名")
    private String user_real_name;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_caller" , value = "客服专员")
    private String user_caller;
    
    @TableField(value = "account") 	
	@ApiModelProperty(name = "account" , value = "账户资金")
    private Double account;
    
    @TableField(value = "concern") 	
	@ApiModelProperty(name = "concern" , value = "我的关注自选")
    private String concern;
    
	@TableField(value = "create_time",fill=FieldFill.INSERT) 
	@ApiModelProperty(name = "create_time" , value = "创建时间")
    private Date create_time;
    
 	@TableField(value = "update_time",fill=FieldFill.UPDATE) 
	@ApiModelProperty(name = "update_time" , value = "更新时间")
    private Date update_time;
    
    @TableField(value = "total") 	
	@ApiModelProperty(name = "total" , value = "资金总额")
    private Double total;
    
    @TableField(value = "rec_total") 	
	@ApiModelProperty(name = "rec_total" , value = "累计充值")
    private Double rec_total;
    
    @TableField(value = "rec_fee") 	
	@ApiModelProperty(name = "rec_fee" , value = "充值手续费")
    private Double rec_fee;
    
    @TableField(value = "max_net_recharge") 	
	@ApiModelProperty(name = "max_net_recharge" , value = "最大净充值")
    private Double max_net_recharge;
    
    @TableField(value = "wit_total") 	
	@ApiModelProperty(name = "wit_total" , value = "累计提现")
    private Double wit_total;
    
    @TableField(value = "wit_fee") 	
	@ApiModelProperty(name = "wit_fee" , value = "提现手续费")
    private Double wit_fee;
    
    @TableField(value = "capital_total") 	
	@ApiModelProperty(name = "capital_total" , value = "配资总额")
    private Double capital_total;
    
    @TableField(value = "trade_total") 	
	@ApiModelProperty(name = "trade_total" , value = "交易总额")
    private Double trade_total;
    
    @TableField(value = "manage_total") 	
	@ApiModelProperty(name = "manage_total" , value = "管理费")
    private Double manage_total;
    
    @TableField(value = "deferred_total") 	
	@ApiModelProperty(name = "deferred_total" , value = "递延费")
    private Double deferred_total;
    
    @TableField(value = "divide_total") 	
	@ApiModelProperty(name = "divide_total" , value = "互惠分成")
    private Double divide_total;
    
    @TableField(value = "server_total") 	
	@ApiModelProperty(name = "server_total" , value = "用户服务费")
    private Double server_total;
    
    @TableField(value = "push_total") 	
	@ApiModelProperty(name = "push_total" , value = "用户推广费")
    private Double push_total;
    
    @TableField(value = "plus_fee_total") 	
	@ApiModelProperty(name = "plus_fee_total" , value = "加收费用")
    private Double plus_fee_total;
    
    @TableField(value = "change_total") 	
	@ApiModelProperty(name = "change_total" , value = "过户费")
    private Double change_total;
    
    @TableField(value = "stamp_total") 	
	@ApiModelProperty(name = "stamp_total" , value = "印花税")
    private Double stamp_total;
    
    @TableField(value = "sell_fee_total") 	
	@ApiModelProperty(name = "sell_fee_total" , value = "出售股票佣金")
    private Double sell_fee_total;
    
    @TableField(value = "buy_fee_total") 	
	@ApiModelProperty(name = "buy_fee_total" , value = "购买股票佣金")
    private Double buy_fee_total;
    
    @TableField(value = "profit_total") 	
	@ApiModelProperty(name = "profit_total" , value = "结算盈亏")
    private Double profit_total;
    
    @TableField(value = "fee_total") 	
	@ApiModelProperty(name = "fee_total" , value = "手续费")
    private Double fee_total;
    
    @TableField(value = "day_capital") 	
	@ApiModelProperty(name = "day_capital" , value = "按天配资")
    private Double day_capital;
    
    @TableField(value = "month_capital") 	
	@ApiModelProperty(name = "month_capital" , value = "按月配资")
    private Double month_capital;
    
    @TableField(value = "week_capital") 	
	@ApiModelProperty(name = "week_capital" , value = "按周配资")
    private Double week_capital;
    
    @TableField(value = "mutual_capital") 	
	@ApiModelProperty(name = "mutual_capital" , value = "互惠配资")
    private Double mutual_capital;
    
    @TableField(value = "increase_capital") 	
	@ApiModelProperty(name = "increase_capital" , value = "追加配资")
    private Double increase_capital;
    
    @TableField(value = "increase_bond") 	
	@ApiModelProperty(name = "increase_bond" , value = "追加保证金")
    private Double increase_bond;
    
    @TableField(value = "sms_time") 	
	@ApiModelProperty(name = "sms_time" , value = "短信发送时间")
    private Date sms_time;
    
    @TableField(value = "reid") 	
	@ApiModelProperty(name = "reid" , value = "推荐人id")
    private Long reid;
    
    @TableField(value = "agent") 	
	@ApiModelProperty(name = "agent" , value = "代理id")
    private Long agent;
    
    @TableField(value = "staff") 	
	@ApiModelProperty(name = "staff" , value = "员工信息")
    private Long staff;
    
    @TableField(value = "mother") 	
	@ApiModelProperty(name = "mother" , value = "母账户id")
    private Long mother;
    
    @TableField(value = "voucher_management") 	
	@ApiModelProperty(name = "voucher_management" , value = "平台赠送管理费")
    private Double voucher_management;
    
    @TableField(value = "voucher_managetotal") 	
	@ApiModelProperty(name = "voucher_managetotal" , value = "送的管理费总额")
    private Double voucher_managetotal;
    
    @TableField(value = "voucher_cash") 	
	@ApiModelProperty(name = "voucher_cash" , value = "平台赠送现金")
    private Double voucher_cash;
    
    @TableField(value = "friend_coupon") 	
	@ApiModelProperty(name = "friend_coupon" , value = "好友现金券总额")
    private Double friend_coupon;
    
    @TableField(value = "my_coupon") 	
	@ApiModelProperty(name = "my_coupon" , value = "我的现金券总额")
    private Double my_coupon;
    
    @TableField(value = "first_voucher_done") 	
	@ApiModelProperty(name = "first_voucher_done" , value = "是否已送")
    private Integer first_voucher_done;
    
    @TableField(value = "first_total") 	
	@ApiModelProperty(name = "first_total" , value = "首充金额")
    private Double first_total;
    
    @TableField(value = "first_trans_red_total") 	
	@ApiModelProperty(name = "first_trans_red_total" , value = "已领红包总额")
    private Double first_trans_red_total;
    
    @TableField(value = "first_date") 	
	@ApiModelProperty(name = "first_date" , value = "首充日期")
    private Date first_date;
    
    @TableField(value = "first_gift") 	
	@ApiModelProperty(name = "first_gift" , value = "首充礼包")
    private Integer first_gift;
    
    @TableField(value = "first_trans_date") 	
	@ApiModelProperty(name = "first_trans_date" , value = "最初交易日")
    private Date first_trans_date;
    
    @TableField(value = "first_voucher") 	
	@ApiModelProperty(name = "first_voucher" , value = "最高满足那一档")
    private Long first_voucher;
    
    @TableField(value = "last_trans_date") 	
	@ApiModelProperty(name = "last_trans_date" , value = "最后交易日")
    private Date last_trans_date;
    
    @TableField(value = "profit_multiple") 	
	@ApiModelProperty(name = "profit_multiple" , value = "利润倍数")
    private Double profit_multiple;
    
    @TableField(value = "version") 	
	@Version
	@ApiModelProperty(name = "version" , value = "Version")
    private Long version;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_name" , value = "昵称")
    private String user_name;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_phone" , value = "电话")
    private String user_phone;
    

	@Override
    public Serializable pkVal() {
        return this.uid;
    }
   
}
